function remove(puid){
	$('#myModal').modal('show');
	$.post("../hr/remove_HrUser.action",{"hrUser.puid":puid}, function(result) {
		if(result.msg=="succ"){
			$('#myModal').modal('hide');
			$("#alertinfo").html("人事信息删除成功。");
			$("#closewin").bind("click",function(){
				$("#closewin").unbind("click");
				$('#myinfo').modal('hide');
				window.location.reload();
			});
			$('#myinfo').modal('show');
		}else{
			$('#myModal').modal('hide');
			$("#alertinfo").html(result.msg);
			$('#myinfo').modal('show');
		}
	});
}
function conditionExport(){
	var did=$("#did").val();
	var wid=$("#wid").val();
	var wcid=$("#wcid").val();
	var name=$("#name").val();
	window.location.assign("../hr/conditionExportExcel_HrUser.action?hrUser.name="+name+"&hrUser.workContent.wcid="+wcid+"&hrUser.work.wid="+wid+"&hrUser.dept.did="+did);
}
function allExport(){
	window.location.assign("../hr/conditionExportExcel_HrUser.action");
}
function conditionPrint(){
	var did=$("#did").val();
	var wid=$("#wid").val();
	var wcid=$("#wcid").val();
	var name=$("#name").val();
	$("#print_hr").attr("src","../hr/print_HrUser.action?hrUser.name="+name+"&hrUser.workContent.wcid="+wcid+"&hrUser.work.wid="+wid+"&hrUser.dept.did="+did);
}
function allPrint(){
	$("#print_hr").attr("src","../hr/print_HrUser.action");
}